<?php use_helper('Javascript','Nifty','Window') ?>

<h1>Tutor Search Results</h1>
<h3>Subject:</h3><?php echo $sf_params->get('subject'); ?><br /><br />
<h3>Rates ($):</h3><?php echo $sf_params->get('rates'); ?><br /><br />
<h3>Service Area:</h3><?php echo $serviceareaname; ?><br /><br />
<h3>Availability:</h3><?php echo $availabilityname; ?><br /><br />
<br />
<?php $count = 1; ?>
<?php foreach($tutors as $tutor): ?>
  <div class="searchresult">
    <div class="searchcount"><?php echo $count; $count = $count + 1; ?></div>
    <div class="searchcontent">
      <?php echo link_to($tutor->getName(),'@viewuser?username='.$tutor->getsfGuardUser()->getUsername()); ?>
      <br />
      Rates ($): <?php echo $tutor->getRates(); ?><br />
      <?php echo link_to_prototype_window(image_tag('information','class="no-border"'),'info'.$tutor->getId(),array('title' => 'Additional Info','width' => '300','height' => '150','url' => '/info/'.$tutor->getId(),'className' => 'theme1','center' => 'true')); ?>
      <?php echo link_to_prototype_window(image_tag('email_go','class="no-border"'),'mail'.$tutor->getId(),array('title' => 'Contact Tutor','width' => '500','height' => '500','url' => '/tutor/mail?email='.$tutor->getsfGuardUser()->getUsername(),'className' => 'theme1','center' => 'true')); ?>
    </div>
  </div>
  <br />
<?php endforeach; ?>

<br /><br /><br /><br /><br /><br /><br /><br /><br />

<?php echo javascript_tag( nifty_round_elements("div.searchresult") ) ?>